/** 
* All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
* 
* ISdProjectReviewService
* SD项目复盘结项
* 
* 修改纪录
* 2021-12-10 版本：1.0 jiangtao 创建。
* @version 版本：1.0
* @author 作者：jiangtao
* 创建日期：2021-12-10
*/

package com.topscomm.gpm.service;

import com.topscomm.pub.util.StringBufferProxy;
import com.topscomm.gpm.IGpmService;
import com.topscomm.gpm.pojo.GpmProjectReviewEntity;
import com.topscomm.gpm.dao.IGpmProjectReviewDao;

import java.util.Map;

public interface IGpmProjectReviewService extends IGpmService<GpmProjectReviewEntity, IGpmProjectReviewDao> {
	/***
	 * @description: 新增和更新方法
	 * @param inputMap
	 * @return
	 * @author: jiangtao1
	 * @date: 2021/12/13 15:04
	 * @modify:
	 */
	Map<String, Object> doSave(Map<String, Object> inputMap);

	String changePermission(String projectId);

	/***
	 * @description: 判断是否存在未结项的任务或者里程碑
	 * @param projectcode
	 * @return
	 * @author: jiangtao1
	 * @date: 2021/12/23 15:38
	 * @modify:
	 */
	Boolean judegEndTpye(String projectcode);

	/**
	 *
	 * @param sql
	 * @author zhangjunyao
	 * @date 2022-01-19
	 * @description 判断是否为省总或CFO
	 * @return boolean
	 */
	boolean isProvinceManagerOrCfo(StringBufferProxy sql);

	/**
	 *
	 * @param projectId
	 * @author zhangjunyao
	 * @date 2022-01-19
	 * @description 判断是否已经提交复盘
	 * @return boolean
	 */
	boolean ifReviewed(String projectId);

	String addsummary(Map<String, Object> paraMap);
}
